package com.ruicar.afs.cloud.channel.affiliation.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.channel.affiliation.condition.AffiliationCondition;
import com.ruicar.afs.cloud.channel.affiliation.entity.ChannelAffiliatedUnitsTemp;
import com.ruicar.afs.cloud.channel.affiliation.mapper.ChannelAffiliatedUnitsTempMapper;
import com.ruicar.afs.cloud.channel.affiliation.service.ChannelAffiliatedUnitsTempService;
import com.ruicar.afs.cloud.channel.affiliation.vo.ChannelAffiliatedUnitsTempVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author panhj
 * @date 2020/5/19
 */
@Service
public class ChannelAffiliatedUnitsTempServiceImpl extends ServiceImpl<ChannelAffiliatedUnitsTempMapper, ChannelAffiliatedUnitsTemp> implements ChannelAffiliatedUnitsTempService {
    @Override
    public IPage<List<ChannelAffiliatedUnitsTempVo>> getChannelAffiliatedUnitsTempInfo(Page page, AffiliationCondition affiliation,List<Long> ids) {
        return this.baseMapper.getChannelAffiliatedUnitsTempInfo(page, affiliation,ids);
    }

    @Override
    public IPage<List<ChannelAffiliatedUnitsTempVo>> getChannelAffiliatedUnitsTempApply(Page page, AffiliationCondition affiliation) {
        return this.baseMapper.getChannelAffiliatedUnitsTempApply(page, affiliation);
    }

    @Override
    public IPage<List<ChannelAffiliatedUnitsTemp>> getChannelAffiliatedUnitsTemp(Page page, AffiliationCondition affiliation) {
        return this.baseMapper.getAffiliationInfo(page, affiliation);
    }

    @Override
    public ChannelAffiliatedUnitsTemp getInfoByIdTypeSocUniCrtCode(String socUniCrtCode, String busiType) {
        return this.baseMapper.getInfoByIdTypeSocUniCrtCode(socUniCrtCode, busiType);
    }

    @Override
    public List getCooperPlatList(String socUniCrtCode) {
        return this.baseMapper.getCooperPlatList(socUniCrtCode);
    }

}
